<!-- 记住密码组件 -->
<template>
  <div class="remember_password">
    <el-checkbox v-model="rememberPwd" label="记住账号" size="small" @change="change" />

  </div>
</template>
<script setup lang='ts' >
import { ref } from 'vue'
const props = defineProps({
  rememberPwd: {
    type: Boolean,
    default: false,
  }
})

const rememberPwd = ref<boolean>(props.rememberPwd)
const emit = defineEmits(['remPwd'])
const change = (v: boolean) => {
  emit('remPwd', v)
}
</script>
<style lang='less' scoped>

</style>
